//
//  sfaMainViewController.m
//  AlarmClock
//
//  Created by Fedor Skrynnikov on 9/14/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "sfaMainViewController.h"
#import "sfaAlarmListViewController.h"
#import "Util.h"

@interface sfaMainViewController ()

@end

@implementation sfaMainViewController


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    sfaAlarmListViewController *view = (sfaAlarmListViewController*)[Util allocViewWithClassName:@"sfaAlarmListViewController"];
    [self pushViewController:view animated:YES];
    [view release];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
    self.navigationBar.barStyle = UIStatusBarStyleBlackTranslucent;
    self.navigationBar.alpha = 0.9;
}



- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}



@end
